package com.mall.admin.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

 /**
 * 系统菜单
 * @author : cck
 * @date : 2025-10-10
 */
 
@Schema(name = "系统菜单",description = "")
@TableName("sys_menu")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysMenu implements Serializable{
    private static final long serialVersionUID = 1L;
    /** 主键id */
    @Schema(name = "主键id",description = "")
    @TableId
    private Long id;
    /** 父级目录id;0为父级目录 */
    @Schema(name = "父级目录id",description = "0为父级目录")
    private Long parentId;
    /** 目录名称 */
    @Schema(name = "目录名称",description = "")
    private String name;
    /** 目录路径 */
    @Schema(name = "目录路径",description = "")
    private String path;
    /** 权限编码 */
    @Schema(name = "权限编码",description = "")
    private String code;
    /** 目录头像 */
    @Schema(name = "目录头像",description = "")
    private String icon;
    /** 排序 */
    @Schema(name = "排序",description = "")
    private Integer sort;
    /** 创建时间 */
    @Schema(name = "创建时间",description = "")
    private Date createdTime;
}